package com.coffee.attachment.excel;

import com.coffee.core.ResponseCode;

/**
 * @author: songkui
 * @since: 2017/3/17 16:49
 * opcode :   0 普通提示， 1，弹到大厅， 2， 弹到登录， 3，重新读取服务器连接
 */
public enum ExcelResponseEnum implements ResponseCode {

    ExcelFieldNotSet(2000, 0, "数据库未配置excel字段信息!"),
    ExcelImportNotHandler(2001, 0, "未发现对应导入Handler!"),
    ExcelExportNotHandler(2002, 0, "未发现对应导出Handler!"),
    ExcelNotCode(2003, 0, "请传入导入导出编码ExcelCode!"),
    ExcelNotData(2004, 0, "未查询到相关数据!"),
    ExcelFileExteError(2005, 0, "请选择Excel格式文件!"),
    MinioNotMainInfo(2006, 0, "未发现Minio关键信息[bucket,object]")
    ;


    private final int code;
    private final int opcode;
    private final String message;

    ExcelResponseEnum(int code, int opcode, String msg) {
        this.code = code;
        this.opcode = opcode;
        this.message = msg;
    }

    public int code() {
        return this.code;
    }

    public int opcode() {
        return this.opcode;
    }

    @Override
    public String message() {
        return this.message;
    }



}
